﻿// Copyright (c) Microsoft Corporation. All rights reserved.
using System;
using System.Text;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.Common.EntitySql;
using System.Data.Objects;
using EntityNorthwind;
/// <summary>
/// Summary description for BasePage
/// </summary>
public partial class BasePage : System.Web.UI.Page 
{
    protected EntityNorthwind.EntityNorthwindContext context;
    protected StringBuilder sb = new StringBuilder();

    protected string connstr = @"";

	public BasePage()
	{

        ObjectDumper.OutputStringBuilder = sb;

        connstr = @"Metadata=~/Model;Provider=System.Data.SqlClient;Provider Connection String='server=.\SQLEXPRESS;AttachDbFileName=C:\EFJuneCTPSamples\App_Data\NORTHWND_101.MDF;Integrated Security=SSPI;enlist=false;user instance=false;'";
    }

    protected string QueryOutput()
    {
        return sb.Replace("\r\n", "<br>").ToString();
    }
}
